package com.netease.b.b.e;

import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;

public class h
{
  private static h c;
  List a = new LinkedList();
  List b = new LinkedList();

  public static h a()
  {
    if (c == null)
      c = new h();
    return c;
  }

  /** @deprecated */
  private void b()
  {
    monitorenter;
    while (true)
    {
      try
      {
        this.b.clear();
        synchronized (this.a)
        {
          if (this.a.size() != 0)
            continue;
          monitorexit;
          return;
          Iterator localIterator = this.a.iterator();
          if (localIterator.hasNext())
          {
            e locale = (e)localIterator.next();
            this.b.add(locale);
          }
        }
      }
      finally
      {
        monitorexit;
      }
      monitorexit;
    }
  }

  /** @deprecated */
  private void c()
  {
    monitorenter;
    try
    {
      if (this.b != null)
        this.b.clear();
      monitorexit;
      return;
    }
    finally
    {
      localObject = finally;
      monitorexit;
    }
    throw localObject;
  }

  void a(int paramInt1, int paramInt2, f paramf)
  {
    b();
    Iterator localIterator = this.b.iterator();
    while (localIterator.hasNext())
    {
      e locale = (e)localIterator.next();
      switch (paramInt2)
      {
      default:
        break;
      case 4096:
        locale.a(paramInt1, paramInt2, paramf);
        break;
      case 4097:
        locale.b(paramInt1, paramInt2, paramf);
        break;
      case 4098:
        locale.c(paramInt1, paramInt2, paramf);
      }
    }
    c();
  }

  void a(int paramInt1, int paramInt2, Object paramObject)
  {
    b();
    Iterator localIterator = this.b.iterator();
    while (localIterator.hasNext())
    {
      e locale = (e)localIterator.next();
      switch (paramInt2)
      {
      default:
        break;
      case 4096:
        locale.a(paramInt1, paramInt2, (j)paramObject);
        break;
      case 4097:
        locale.a(paramInt1, paramInt2, (g)paramObject);
        break;
      case 4098:
        locale.b(paramInt1, paramInt2, (g)paramObject);
      }
    }
    c();
  }

  public void a(e parame)
  {
    synchronized (this.a)
    {
      if (!this.a.contains(parame))
        this.a.add(parame);
      return;
    }
  }

  public void b(e parame)
  {
    synchronized (this.a)
    {
      this.a.remove(parame);
      return;
    }
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.b.b.e.h
 * JD-Core Version:    0.6.0
 */